import { ElNotification, ElMessageBox } from 'element-plus';
// 消息提示
export function toast(message, type = 'success', dangerouslyUseHTMLString = true) {
  ElNotification({
    message,
    type,
    dangerouslyUseHTMLString,
    duration: 3000
  });
}
export function showModal(message, type = 'success', title = '') {
  return ElMessageBox.confirm(message, title, {
    confirmButtonText: '确认',
    cancelButtonText: '取消',
    type
  });
  // .then(() => {
  //   ElMessage({
  //     type: 'success',
  //     message: 'Delete completed',
  //   })
  // })
  // .catch(() => {
  //   ElMessage({
  //     type: 'info',
  //     message: 'Delete canceled',
  //   })
  // })
}
